<?php

namespace app\common\model;

use think\Model;
use think\Db;
/**
 * 地址模型
 */
class Admin extends Model
{
    public function getList(){

        $list = $this->field('id,nickname as name')->where(['status' => 'normal'])->select();
        $data = [];
        foreach($list as $k => $v){
            $data[$v['id']] = $v['name'];
        }

        return $data;
    }
}